<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    这是输入框
    <br>
    <input type="text" v-model="inputTxt">
    {{ inputTxt }}
    <hr>
    单选：
    <label for="male">男</label>
    <input type="radio" v-model="gender" value="男" id="male">
    <label for="female">女</label>
    <input type="radio" v-model="gender" value="女" id="female">
    {{ gender }}
    <hr>
    多选:
    爱好：
    <label for="lanqiu">篮球</label>
    <input type="checkbox"  v-model="hobbies" id="lanqiu" value="篮球">
    <br>
    <label for="zuqiu">足球</label>
    <input type="checkbox"  v-model="hobbies"  id="zuqiu" value="足球">
    <br>
    <label for="pingpang">乒乓球</label>
    <input type="checkbox"  v-model="hobbies" id="pingpang" value="乒乓球">
    <br>
    <label for="piqiu">皮球</label>
    <input type="checkbox" v-model="hobbies"  id="piqiu" value="皮球">
    {{ hobbies }}

    <hr>
    复选框和checked属性绑定
    <input type="checkbox" v-model="isBeauty">
    {{  isBeauty }}
    <hr>
    <select name="city" v-model="city" >
      <option value="合肥">合肥</option>
      <option value="芜湖">芜湖</option>
      <option value="六安">六安</option>
      <option value="淮南">淮南</option>
    </select>
    {{ city }}
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        inputTxt:'初始值',
        gender: '男',
        hobbies: ['篮球','乒乓球'],
        isBeauty: true,
        city: '合肥'
      }
    })
  </script>
</body>
</html>